package com.sailorj.mapper;

import com.sailorj.entity.TbEnlist;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TbEnlistMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TbEnlist record);

    TbEnlist selectByPrimaryKey(Integer id);

    int insertSelective(TbEnlist record);

    TbEnlist updateByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbEnlist record);

    @Select("select * from tb_enlist  limit #{page},#{size}")
    List<TbEnlist> selectEnlistList(@Param("page") Integer page, @Param("size")Integer size);

    @Select("select count(*) from tb_plan")
    Long getTotal();

}